package com.hyzx.qbasic.admin.model.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * Created by 黄江华 on 2017/10/12
 * 分页请求
 */

@ApiModel
public class PagingRequest extends BaseRequest {
    @ApiModelProperty("当前页(从1开始)")
    @NotNull(message = "pageNum不能为空")
    @Min(value = 1, message = "pageNum必须大于0")
    private Integer pageNum;

    @ApiModelProperty("每页记录数")
    @NotNull(message = "pageSize不能为空")
    @Min(value = 1, message = "pageSize必须大于0")
    private Integer pageSize;

    public Integer getPageNum() {
        return pageNum;
    }

    public void setPageNum(Integer pageNum) {
        this.pageNum = pageNum;
    }

    public Integer getPageSize() {
        return pageSize;
    }

    public void setPageSize(Integer pageSize) {
        this.pageSize = pageSize;
    }
}
